def secore(secondi):
    a=secondi
    b=a%3600
    d=a%60
    b/=60
    c = repr(b)
    if len(c) == 1:
        b *= 10
        b = repr(b)
        b=b[::-1]
    if a/3600==1:
        orae='ora'
    else:
        orae='ore'
    return a/3600, b
    
print secore(51720)